package com.iot.ic.service;

import com.iot.ic.model.FaultSupport;

import java.util.List;
import java.util.Map;


/**
 * Created by xiuge on 2017/2/20.
 */
public interface FaultSupportService {

    /**
     * 添加新的故障
     * @param faultSupport
     * @return
     */
    int addFaultSupportInfo(FaultSupport faultSupport);

    /**
     * 获取故障列表
     * @return
     */
    List<Map<String,Object>> getFaultSupport(int faultSupportState);


    /**
     * 根据参赛队伍获取故障列表
     * @return
     */
    List<Map<String,Object>> getFaultSupportByTeam(FaultSupport faultSupport);

    
    /**
     * 处理人工干预
     * @return
     */
    int handleFaultSupport(int faultSupportId);

    /**
     * 删除人工干预
     * @param faultSupportId
     * @return
     */
    int delFaultSuppoert(int faultSupportId);
    
    
    /**
     * 通过车队Id获得故障支援信息
     * @param teamId
     * @return
     */
    FaultSupport getFaultSuppoertByTeamId(int teamId);

}
